<%--
  Created by IntelliJ IDEA.
  User: xhc
  Date: 2017/5/22
  Time: 19:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="<%=request.getContextPath()%>/static/jquery/jquery-1.11.0.min.js"></script>
</head>
<body>
    <script type="text/javascript">
        $(function () {
            document.write("你点击了："+getQueryStr("title"));
        });

        function  getQueryStr(argName) {
            var reg = new RegExp("(^|&)"+ argName +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }
    </script>
</body>
</html>
